<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <button @click="test1">test1</button><br />
        <button @click="test2">test2</button><br />
        <button @click="test3">test3</button>
    </div>
    <script src="../assets/vue3.js"></script>
    <script>
        const app = Vue.createApp({
            methods: {
                test1: function () {
                    console.log(this);
                },
                test2() {
                    console.log(this);
                },
                test3: () => {
                    console.log(this);
                }
            },
        })
        app.mount('#app')
    </script>

</body>

</html>